package com.zwmuzhi.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <h3>cloudLearn</h3>
 * <p>common return result</p>
 *
 * @author : zwmuzhi
 * @date : 2020-11-04 15:11
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    /**
     * 返回码
     */
    private Integer code;
    /**
     * 返回信息
     */
    private String message;
    /**
     * 返回数据
     */
    private T data;

    public CommonResult(Integer code,String message){
        this.code = code;
        this.message = message;
    }

}
